package com.tul.exercise.base.operator.egs;


import org.junit.jupiter.api.Test;

import static com.tul.exercise.base.utils.Print.print;

/**
 * @Description 《java编程思想》第3章 示例8：
 * <p>
 * 指数计数法
 **/
public class Exponents {
    @Test
    public void test() {
        float expFloat = 1.39E-43f;
        print("expFloat=" + expFloat);

        expFloat = 1.39e-43f;
        print("expFloat=" + expFloat);

        double exDouble = 47e47d;
        double exDouble2 = 47e47;
        print("exDouble=" + exDouble);
        print("exDouble2=" + exDouble2);
    }
}
